package com.atguigu.spzx.cart;

import com.atguigu.spzx.common.anno.EnableSpzxUserInfo;
import com.atguigu.spzx.common.config.SpzxAuthWhiteUrls;
import com.atguigu.spzx.common.interceptor.SpzxLoginAuthInterceptor;
import com.atguigu.spzx.common.interceptor.SpzxWebMvcConfigurer;
import com.atguigu.spzx.product.client.anno.EnableProductClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = {
        SpzxWebMvcConfigurer.class,
        SpzxAuthWhiteUrls.class,
        SpzxLoginAuthInterceptor.class,
        DataSourceAutoConfiguration.class

})
@EnableSpzxUserInfo //启用登录拦截器 可以获取登录信息透传
//EnableFeignClients扫描加了FeignClient注解的接口 只要保证扫描包范围无误即可
@EnableProductClient
public class SpzxCartApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxCartApplication.class , args);
    }
}
